﻿--[[
   @brief    ui logic for preloadpage ui
   @author   jameshchen
   @version  1.0
   @date     2015-03-17
--]]

preloadpage_desc =
{
    module_name = 'preloadpage',
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.preload.PRELOAD_ON_PACK_BEGIN,
                    callback = "preloadpage_control.on_pack_progress"
                },
                {
                    id = ierd_tgp.preload.PRELOAD_ON_PACK_PROGRESS,
                    callback = "preloadpage_control.on_pack_progress"
                },
                {
                    id = ierd_tgp.preload.PRELOAD_ON_PACK_END,
                    callback = "preloadpage_control.on_pack_progress"
                },
            },
            lua_event = 
            {
                {
                    id  = preloadpage_event.PRELOAD_LOAD_PAGE_SUCCESS,
                    callback = "preloadpage_control.load_page_success"
                },
                {
                    id = launchpage_event.LAUNCHPAGE_CALL_PRELOADPAGE,
                    callback = "preloadpage_control.load_page_success"
                }
            },
            lua_file = "tool_box\\preloadpage\\control.lua"
        }
    }
};
desc_mgr.add(preloadpage_desc);